<{if $aCart.object.goods}>
<!--2017.5.24 by qingfeng挪至（cart_main.html）<div class="allcheck c-fix"><label for="items_check_all"><input type="checkbox" id="items_check_all" name="allcheck" />全选</label></div>-->
<ul class="pt-list">
  <{foreach from=$aCart.object.goods item=goods key=_obj_key}>
  <{if $goods.obj_submit}>
  <li class="pt-h-item c-fix active <{if $goods['store']['store']<=0 }> cart-no-store <{/if}>" >
  <{else}>
   <li class="pt-h-item c-fix  <{if $goods['store']['store']<=0 }> cart-no-store <{/if}>">
  <{/if}>
    <input type="hidden" name="obj_type" value="goods" />
    <input type="hidden" name="goods_ident" value="<{$goods.obj_ident}>" />
    <input type="hidden" name="goods_id" value="<{$goods.obj_items.products.0.goods_id}>" />
    <input type="hidden" name="min" value="1" class="min-num" />
    <input type="hidden" name="max" value="<{$goods.store.real}>" class="max-num" />
    <input type="hidden" name="stock" value="<{$goods.store.store}>" />
    <!--重定义选框结构by 2017.5.24 by qingfeng-->
    <!--<div class="f-l checkbox"><input  type="checkbox" name="check[<{$goods.obj_ident}>]" value="1" <{if $cart_objects[$goods.obj_ident][mark_submit]}> checked="checked"<{/if}>></div>-->	
	<div class="checkbox checkone"><{if $goods['store']['store']>0 }><input  class="chk_1" type="checkbox" name="check[<{$goods.obj_ident}>]" value="1" <{if $cart_objects[$goods.obj_ident][mark_submit]}> checked="checked"<{/if}> id="[<{$goods.obj_ident}>]">
	<label for="[<{$goods.obj_ident}>]"></label><{/if}>
	</div>
	<!--重定义选框结构end-->  
    <div href="<{$goods.obj_items.products.0.default_image.thumbnail|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" class="pt-h-img"><a href="<{link app=b2c ctl=wap_product act=index arg0=$goods.obj_items.products.0.product_id}>"><img src="<{$goods.obj_items.products.0.default_image.thumbnail|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" alt="<{$goods.obj_items.products.0.name}>"></a></div>
    <div class="pt-h-info"> 
        <div class="pt-h-name">
            <h3 class="f-l"><{$goods.obj_items.products.0.name}></h3>
			<div class="pt-h-del">
			<!-- a标签的跳转在JS里写 qianjin 2016-7-20 -->
			<a href="javascript:void(0);" class="J-remove">删除</a>
			</div>
        </div>
		<div class="pt-h-bar c-fix">
			<div class="col price f-l">
			  <{$goods.subtotal_prefilter_after|cur_odr}>
			</div>
			<div class="f-r">
				<{if $goods['store']['store']<=0 }>
				<a href="<{ link app=b2c ctl=wap_gallery act=similar arg0=$gid  }>" class="btn gray">看相似</a>
				<p>售完补货中</p>
				<div class="pt-num J-pt-num" style="display:none">
				  <span style="border-radius: 100px;" class="minus btn gray">-</span>
				  <div class="num">
					<input type="text" name="modify_quantity[<{$goods.obj_ident}>][quantity]" value="<{$goods.quantity}>" style="border:none" class="num-ipt">
				  </div>
				  <span style="border-radius: 100px;" class="plus btn gray">+</span><{if $goods.store.store <= 5}><span class="warn-message">余量有限</span><{/if}>
				</div>
				<{else}>
				<div class="pt-num J-pt-num">
				  <span style="border-radius: 100px;" class="minus btn gray">-</span>
				  <div class="num">
					<input type="text" name="modify_quantity[<{$goods.obj_ident}>][quantity]" value="<{$goods.quantity}>" style="border:none" class="num-ipt">
				  </div>
				  <span style="border-radius: 100px;" class="plus btn gray">+</span><{if $goods.store.store <= 5}><span class="warn-message">余量有限</span><{/if}>
				</div>
				<{/if}>
			</div>
		</div>
     </div>
      <!-- 赠品 -->
        <{foreach from=$goods.gift item=gift key=_gift_key}>
        <!-- <div class="box"> -->
          <span class="col f-red">赠品</span>
          <span class="col">
              <{$gift.name}><{$gift.spec_desc}>
              <i><{$gift.price.price|cur_odr}> x <{$gift.quantity}></i>
            </span>
          <!-- </div> -->
          <{/foreach}>
          <!-- 商品促销 -->
          <{foreach from=$aCart.promotion.goods.[$goods.obj_ident] item=goods_promotion}>
          <{if $goods_promotion.cart_display}>
          <!-- <div class="box"> -->
            <span class="col f-red"><{$goods_promotion.desc_tag}></span>
            <span class="col"><{$goods_promotion.name}></span>
          <!-- </div> -->
          <{/if}>
          <{/foreach}>
  </li>

    <!-- 配件 -->
    <{foreach from=$goods.adjunct item=adjunct key=key name=adjunct}>
    <li class="pt-h-item c-fix">
      <input type="hidden" name="obj_type" value="goods">
      <input type="hidden" name="min" value="<{$adjunct.store.min_buy_store}>"/>
      <input type="hidden" name="max" value="<{$adjunct.store.real - $cart_buy_nums.[$adjunct.goods_id] + $adjunct.quantity}>" class="max-num"/>
      <input type="hidden" name="stock" value="<{$adjunct.store.store}>"/>
      <input type="hidden" name="response_type" value="true" />
      <div href="<{$adjunct.default_image.thumbnail|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" class="pt-h-img">
        <a href="<{link app=b2c ctl=wap_product arg0=$adjunct.product_id }>">
          <img src="<{$adjunct.default_image.thumbnail|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" alt="">
        </a>
      </div>
      <div class="pt-h-info">
        <div class="pt-h-name">
          <{$adjunct.name}>
        </div>
        <div class="pt-h-other">
          <{$adjunct.spec_info}>
        </div>
        <div class="pt-h-price">
          <div class="col2">
            <div class="col price">
              <{$adjunct.json_price.price|cur_odr}>
            </div>
          </div>
        </div>
      </div>

      <div class="pt-h-bar c-fix">
        <div class="pt-num J-pt-num">
          <span class="minus btn gray">-</span>
          <div class="num">
            <input type="text" name="modify_quantity[<{$goods.obj_ident}>][adjunct][<{$adjunct.group_id}>][<{$adjunct.product_id}>][quantity]" id="" value="<{$adjunct.quantity}>">
          </div>
          <span class="plus btn gray">+</span><{if $adjunct.store.store <= 5}><span class="warn-message">余量有限</span><{/if}>
        </div>
        <div class="pt-h-fav">
        <{if $login=='nologin'}>
          <a href="<{link app=b2c ctl=wap_passport act=login}>" class="btn">收藏</a>
        <{else}>
          <a class="btn btn-addfav favlist" type="button" data-gid="<{$goods.obj_items.products.0.goods_id}>" href="#">收藏</a>
        <{/if}>
        </div>
        <div class="pt-h-del">
          <a href="<{link app=b2c ctl='wap_cart' act='remove' arg0='goods'}>" class="btn gray J-remove">
            删除
          </a>
        </div>
      </div>
    </li>
    <{/foreach}>
    <{/foreach}>
  </ul>
  <{/if}>
